<?php

namespace app\common\event;



use support\Redis;

class HelloEvent
{
    public function test($data)
    {
        echo "HelloEvent已就绪". date('Y-m-d H:i:s').PHP_EOL;
        Redis::setEx($data['key'], 1000, json_encode($data,true));
        /*业务处理逻辑*/
    }
}
